<form nz-form [formGroup]="form" (ngSubmit)="submit()" role="form">



  <nz-alert *ngIf="error" [nzType]="'error'" [nzMessage]="error" [nzShowIcon]="true" class="mb-lg"></nz-alert>
  <nz-form-item>
      <nz-form-control>
          <nz-input-group  nzSize="large" nzPrefixIcon="anticon anticon-user">
              <input  style="opacity: 0.5" nz-input formControlName="userName" autocomplete="off" placeholder="用户名">
          </nz-input-group>
          <nz-form-explain *ngIf="userName.dirty && userName.errors">用户名.</nz-form-explain>
      </nz-form-control>
  </nz-form-item>
  <nz-form-item>
      <nz-form-control>
          <nz-input-group nzSize="large" nzPrefixIcon="anticon anticon-lock">
              <input style="opacity: 0.5;" nz-input type="password" autocomplete="off" formControlName="password" placeholder="密码">
          </nz-input-group>
          <nz-form-explain *ngIf="password.dirty && password.errors">
                密码.
          </nz-form-explain>
      </nz-form-control>
  </nz-form-item>

  <nz-form-item>
    <nz-col [nzSpan]="12">
      <label nz-checkbox formControlName="remember">记住用户名</label>
    </nz-col>
    <nz-col [nzSpan]="12" class="text-right">
      <a class="forgot" (click)="msg.error('请找管理员')">忘记密码</a>
    </nz-col>
  </nz-form-item>
  <nz-form-item>
      <button  style="opacity: 0.5" nz-button type="submit" nzType="primary" nzSize="large" [nzLoading]="loading" class="ant-btn__block">登录</button>
  </nz-form-item>

</form>
